package com.network.service.networkmodel;

import org.springframework.stereotype.Component;

import com.network.cfg.Configuration;

/**
 * 
 * @author lingxiaowei
 *
 */
@Component
public abstract class GraphService {
	
	protected static final int SUCCESS = 1;
	protected static final int ERROR = 0;
	protected static final int DEFAULT_BA_MINAVDGREE = Configuration.DEFAULT_MINAVDGREE;
	
	public static final int INT_DATE_ERROR = Integer.MIN_VALUE;
	
	public static final double DOUBLE_DATE_ERROR = Double.MIN_VALUE;
	
	protected boolean isGenGraph;
	
	public GraphService()
	{
		super();
		isGenGraph = false;
	}
	
	public abstract double getAveDegree();
	
	public abstract double getAveCC();
	
	public abstract double getAveLen();
	
	public abstract double getDiameter();
	
	public abstract double getModularity();
	

}
